home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / ljustify.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  1.0 KB  |  40 lines

  1. <!--- This example shows how to use LJustify --->
  2.  
  3.  
  4. <HTML>
  5. <HEAD>
  6. <TITLE>
  7. LJustify Example
  8. </TITLE>
  9. </HEAD>
  10.  
  11. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  12. <BODY  bgcolor="#FFFFD5">
  13. <H3>LJustify Function</H3>
  14.  
  15. <CFPARAM name="NewString" default="CF Rocks!">
  16. <CFPARAM name="Length" default="30">
  17.  
  18.  
  19.  
  20. <CFOUTPUT>
  21. <form>
  22. Ljustify()<br>
  23. <input type="button" name="button" value="#ljustify(NewString, Length)#"><br>
  24. Cjustify()<br>
  25. <input type="button" name="button" value="#cjustify(NewString, Length)#"><br>
  26. Rjustify()<br>
  27. <input type="button" name="button" value="#rjustify(NewString, Length)#"><br>
  28. </form>
  29. </cfoutput>
  30.  
  31. Enter a string in one or both of the text boxes and see how the string or strings are justified,
  32. depending on the form of justification used.
  33. <FORM method="post" action="#GetFileFromPath(GetTemplatePath())#">
  34.     <input type="text" name="NewString" value="">
  35.     <input type="text" name="NewString" value="" size="3"><br>
  36.     <input type="submit" name="submit" value="Change">
  37. </FORM>
  38.  
  39. </BODY>
  40. </HTML>